﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<hsgsSHXX.Model.SHXX>
<div id="divTable">
    <table width="100%">
        <tr>
            <th class=" thbj" style="white-space: nowrap;">
                姓名
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                身份证号
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                联系电话
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                地址
            </th>
            <th class=" thbj"  style="width:40%">
                备注
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                提供部门
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                来源
            </th>
            <th class=" thbj" style="white-space: nowrap;">
                导入日期
            </th>
        </tr>
        @foreach (var item in Model)
        {
            <tr>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.XM)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.SFZH)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.LXDH)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.DZ)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.BZ)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.SJTGBM)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.SJLY)
                </td>
                <td style="text-align: left">
                    @Html.DisplayFor(modelItem => item.DRRQ_Str)
                </td>
            </tr>
        }
    </table>
    <table width="100%">
        <tr>
            <td style="text-align: left" style="width: 30%; border: 0">
                共 @Model.TotalPageCount 页 @Model.TotalItemCount 条记录，当前为第 @Model.CurrentPageIndex
                页 </td>
            <td style="text-align: left; border: 0">
                @Ajax.Pager(Model, new PagerOptions { AutoHide = false, PageIndexParameterName = "id", ShowPageIndexBox = false, PageIndexBoxType = PageIndexBoxType.DropDownList, ShowGoButton = false }, new MvcAjaxOptions { UpdateTargetId = "articles", LoadingElementId = "loadingDiv", HttpMethod = "Post", DataFormId = "searchForm", OnBegin = "begin()", OnComplete = "complete()"})
            </td>
        </tr>
    </table>
</div>